<?php

class Marcas extends BaseMarcas
{
    public function __toString(){
        return $this->getMarNombre();
    }

    public function getNroVentasPorMarca(){
                $criteria = new Criteria();
        $criteria->add(ProductosPeer::PRO_MARCA, $this->getMarId());

        $nroVentas = DetalleVentasPeer::doCount($criteria);
        return $nroVentas;
    }
}


